package com.ysd.lis.controller.iqc;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.request.CommonPageDto;
import com.ysd.lis.service.iqc.*;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 员工表
 * 前端控制器
 * </p>
 *
 * @author pengrongshuai
 * @since 2023-12-19
 */
@Api(tags = "过渡板LIs质控品同步")
@RestController
@RequestMapping("/api/iqc/limsIQCMaterial")
public class LimsIQCMaterialController extends BaseController {

    @Autowired
    LimsIQCMaterialBatchesService limsIQCMaterialBatchesService;
    @Autowired
    LimsIQCMaterialBatchInsAnssService limsIQCMaterialBatchInsAnssService;
    @Autowired
    LimsIQCMaterialBatchInsAnsStagesService limsIQCMaterialBatchInsAnsStagesService;
    @Autowired
    LimsIQCResultsService limsIQCResultsService;
    @Autowired
    QcMaterialItemResultGdbService qcMaterialItemResultGdbService;
    @GetMapping("/syncQcMaterial")
    public Result syncQcMaterial(CommonPageDto pageParam){
        return limsIQCMaterialBatchesService.syncQcMaterial(pageParam);
    }

    @GetMapping("/syncQcMaterialItem")
    public Result syncQcMaterialItem(CommonPageDto pageParam){
        return limsIQCMaterialBatchInsAnssService.syncQcMaterialItem(pageParam);
    }

    @GetMapping("/syncQcMaterialItemTarget")
    public Result syncQcMaterialItemTarget(CommonPageDto pageParam){
        return limsIQCMaterialBatchInsAnsStagesService.syncQcMaterialItemTarget(pageParam);
    }

    @GetMapping("/syncQcMaterialItemResultGdb")
    public Result syncQcMaterialItemResultGdb(CommonPageDto pageParam){
        return limsIQCResultsService.syncQcMaterialItemResultGdb(pageParam);
    }
    @GetMapping("/transQcMaterialItemResult")
    public Result transQcMaterialItemResult(CommonPageDto pageParam){
        return qcMaterialItemResultGdbService.transQcMaterialItemResult(pageParam);
    }

}
